package com.xuhaijian.controller;

import com.xuhaijian.entity.OrderPayment;
import com.xuhaijian.feign.SonFeignClient;
import com.xuhaijian.service.OrderPaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
public class TestController {

    @Autowired
    private OrderPaymentService orderPaymentService;

    @Autowired
    private SonFeignClient sonFeignClient;

    @RequestMapping("/queryData/{applyNo}")
    //ZHSYC220000015
    public List<OrderPayment> queryData(@PathVariable("applyNo") String applyNo){
        return sonFeignClient.queryData(applyNo);
    }
}
